/* Wrapper to center content */
.templatewrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Grid Container */
.templatecontainer {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1200px;
}

/* Card Styling */
.templatecard {
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.templatecard:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(5, 177, 245, 0.589);
}

/* Image */
.templatecard img {
    width: 100%;
    height: auto;
    display: block;

}

/* Badge */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: black;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Content */
.content {
    padding: 15px;
}

h2 {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
    font-family: 'Varino';
}

.subtext {
    font-size: 12px;
    color: #bbb;
    font-style: italic;
    
}

.description {
    font-size: 12px;
    color: #ccc;
    margin: 10px 0;
}

/* Details */
.details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
}

.Template-button {
    position: absolute;
    bottom: 15px;
    left: 50%;
    bottom: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.Template-button a {
    text-decoration: none;
}

.bttn {
    background: linear-gradient(135deg, #007bff, #00d4ff);
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.bttn:hover {
    background: linear-gradient(135deg, #0056b3, #008cba);
    transform: scale(1.05);
}
